import pandas as pd
import plotly.express as px

import config
import load_fred
import pca_index

import pandas_datareader

DATA_DIR = config.DATA_DIR

import warnings
warnings.filterwarnings("ignore")

S&P 500#

df = pandas_datareader.get_data_fred('SP500', start='1970-01-01')

fig = px.line(df)
fig.show()

PCA Index Dashboard Examples#

This script was last run at 2024-03-14 10:12:05.249421+00:00 (UTC)
In US/Central Time, this is 2024-03-14 05:12:05.249421-05:00
../_images/14c86fe44387f797faea5a518c8dcdf44059f7187e1752869dd81e11f7f35245.png
../_images/5eab6322691a642b78221b65852956f455d44426e81cc0a71eb567783e71dfcb.png